﻿@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <title>HN.Wedding</title>
    <link href="@Url.Content("~/Content/Slide.css")" rel="stylesheet" type="text/css" />
    @{
        //User theme
        var currentTheme = DotNetDream.Extenstion.SessionManager.User.Theme;
        //Script folder
        DirectoryInfo scriptDir = new DirectoryInfo(Server.MapPath("~/Scripts/jQuery"));
        DirectoryInfo cssDir = new DirectoryInfo(Server.MapPath("~/Content/jQuery"));
    }
    <!-- jQuery UI Theme -->
    <link href="@Url.Content(string.Format("~/Content/Themes/{0}/theme.css", DotNetDream.Extenstion.SessionManager.User.Theme)) " rel="stylesheet" type="text/css" />
    <!-- jQuery plugins CSS -->
    @foreach (FileInfo file in cssDir.GetFiles())
    {
        <link href="@Url.Content(string.Format("~/Content/jQuery/{0}", file.Name)) " rel="stylesheet" type="text/css" />
    }
</head>
<body>
    @RenderBody()
    <script src="@Url.Content("~/Scripts/jquery-1.6.2.min.js")"  type="text/javascript")></script>
    <!-- Register jQuery plugins-->
    @foreach (FileInfo file in scriptDir.GetFiles())
    {
        <script src="@Url.Content("~/Scripts/jQuery/" + @file.Name)" type="text/javascript")></script>
    }
    <!-- Register controller script -->
    <script src="@Url.Content(string.Format("~/Scripts/Controllers/{0}.js", @ViewContext.RouteData.Values["controller"]))" type="text/javascript"></script>
</body>
</html>
